package com.woniuxy.enjoylife.entity.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.woniuxy.enjoylife.entity.User;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
//活动-发起者实体类
public class ActivityDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    //活动发起者的id
    private Integer uid;
    //活动的小区id
    private Integer cid;
    //活动名称
    private String name;
    //活动地址
    private String address;
    //活动时间
    private LocalDateTime time;
    //活动图片
    private String image;
    //活动内容
    private String content;
    //活动    0：未开始    1：报名中    2：已结束
    private Integer result;
    //是否删除  0：未删除   1：已删除
    private Integer status;
    //通过uid去查询发起活动用户信息
    private User user;
}